/*Copyright (C) 2009  John Zarb

    This program is free software: you can redistribute it and/or modify

    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,

    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License

    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * */
package simpleimageviewer;

import java.io.File;
import javax.swing.ImageIcon;

public class ImageData {

    private String imageName;
    
    private ImageIcon imageIcon;
    
    public ImageData() {
        this(null, null);
    }
    
    public ImageData(String imagePath) {
        this(new File(imagePath));
    }
    
    public ImageData(File imageFile) {
        this( imageFile.getName(), new ImageIcon(imageFile.getAbsolutePath()) );
    }
    
    public ImageData(String imageName, ImageIcon imageIcon) {
        setImageName(imageName);
        setImageIcon(imageIcon);
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public ImageIcon getImageIcon() {
        return imageIcon;
    }

    public void setImageIcon(ImageIcon imageIcon) {
        this.imageIcon = imageIcon;
    }
    
}
